/**
 * 
 */
package Networking;

/**
 * @author Jonas Spitzenpfeil
 * 
 */
public interface ServerReceiver {

	/**
	 * This method is called by a Server object when a line has been received
	 * 
	 * @param line
	 *            The received line
	 */
	public void lineReceived(String line);

	/**
	 * This method is called by a Server-object when a client connects
	 */
	public void clientConnected(String clientIP);

	/**
	 * This method is called by a Server-object when the client disconnects
	 */
	public void clientDisconnected(String clientIP);

	/**
	 * This method is called by a Server object when the client lost connection
	 * 
	 * @param clientIP
	 *            The client IP
	 * @param msg
	 *            The reason why connection lost
	 */
	public void clientConnectionLost(String clientIP, String msg);
}
